package cn.zn.modules.appoin.entity;

import cn.zn.framework.common.abs.AbsOldMainEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "atr_special")
public class AtrSpecialEntity extends AbsOldMainEntity {

    @TableField(value = "RULE_ID_")
    private String ruleId;

    @TableField(value = "SPECIAL_DATE_")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date specialDate;

    @TableField(value = "IS_WORK_")
    private Boolean isWork;

    /**
     * 工作时间间隔
     */
    @TableField(value = "INTERVAL_")
    private Byte interval;

    @TableField(value = "TITLE_")
    private String title;

    @TableField(exist = false)
    List<AtrSpecialWorkTime> specialWorkTimes;
}